/**
 * 插件全局默认配置
 */
if ($.jgrid) {
    $.extend(true, $.jgrid.defaults, {
        datatype: 'json',
        mtype: 'GET',
        rowNum: 20,
        rowList: [10, 20, 30],
        viewrecords: true,
        autowidth: true,
        multiselect: true,
        prmNames: {
            page: 'pageNo',
            rows: 'pageSize',
            sort: 'orderBy',
            order: 'order',
            search: null,
            nd: null,
            npage: null
        },
        jsonReader: {
            root: 'data.list',
            page: 'data.pageNum',
            total: 'pages',
            records: 'data.total'
        }
    });
}

if (BootstrapDialog) {
    BootstrapDialog.configDefaultOptions({
        nl2br: false,
        draggable: true,
        closable: true, // 是否可以关闭
        closeByBackdrop: false,  // 空白处关闭
        closeByKeyboard: false,  // Esc关闭
    });
}